﻿using System.Web.Mvc;
using Kaiser.Services;

namespace Kaiser.Modules.Admin
{
    public static class FactoryBuider
    {
        public static IAttachService CreateAttachService()
        {
            return DependencyResolver.Current.GetService<IAttachService>();
        }

        public static IPermissionService CreatePermissionService()
        {
            return DependencyResolver.Current.GetService<IPermissionService>();
        }

        public static IRoleService CreateRoleService()
        {
            return DependencyResolver.Current.GetService<IRoleService>();
        }

        public static ISystemManageService CreateSystemManageService()
        {
            return DependencyResolver.Current.GetService<ISystemManageService>();
        }

        public static IUserGroupService CreateUserGroupService()
        {
            return DependencyResolver.Current.GetService<IUserGroupService>();
        }
        public static IUserService CreateUserService()
        {
            return DependencyResolver.Current.GetService<IUserService>();
        }

    }
}
